package com.kk.xhr.admin.biz;

import com.kk.xhr.admin.controller.request.AdjustSalaryAddRequest;
import com.kk.xhr.admin.controller.request.AdjustSalaryModifyRequest;
import com.kk.xhr.admin.controller.vo.AdjustSalaryVO;
import com.kk.xhr.common.pojo.BinaryEnum;

import java.util.List;

/**
 * 调薪biz服务接口
 *
 * @author kkmystery
 * @version 1.0 2021/3/7
 * @since 1.0.0
 */
public interface IAdjustSalaryBizService {

    /**
     * 查询我的调薪
     *
     * @param userId 用户id
     * @return AdjustSalaryVO
     */
    List<AdjustSalaryVO> queryMine(Long userId);

    /**
     * 添加调薪
     *
     * @param request AdjustSalaryAddRequest
     */
    void add(AdjustSalaryAddRequest request);

    /**
     * 修改调薪
     *
     * @param id      主键id
     * @param request AdjustSalaryModifyRequest
     */
    void modify(Long id, AdjustSalaryModifyRequest request);

    /**
     * 修改调薪状态
     *
     * @param id     主键id
     * @param status 状态
     * @return 是否成功
     */
    boolean modifyStatus(Long id, BinaryEnum status);
}
